import 'dart:async';

import 'package:flutter_test/flutter_test.dart';
import 'package:yk_pda_plugin/yk_pda_plugin.dart';
import 'package:yk_pda_plugin/yk_pda_plugin_platform_interface.dart';
import 'package:yk_pda_plugin/yk_pda_plugin_method_channel.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';

class MockYkPdaPluginPlatform
    with MockPlatformInterfaceMixin
    implements YkPdaPluginPlatform {

  @override
  Future init(StreamController streamController) {
    return Future.value();
  }
}

void main() {
  final YkPdaPluginPlatform initialPlatform = YkPdaPluginPlatform.instance;

  test('$MethodChannelYkPdaPlugin is the default instance', () {
    expect(initialPlatform, isInstanceOf<MethodChannelYkPdaPlugin>());
  });

  test('getPlatformVersion', () async {
    YkPdaPlugin ykPdaPlugin = YkPdaPlugin.instance;
    MockYkPdaPluginPlatform fakePlatform = MockYkPdaPluginPlatform();
    YkPdaPluginPlatform.instance = fakePlatform;

    // expect(await ykPdaPlugin.getPlatformVersion(), '42');
  });
}
